#pragma once
#pragma once
#include<stdio.h>
#include<stdlib.h>
#include<assert.h>

typedef int sldatatype;
typedef struct seqlist
{
	sldatatype* a;
	int size;
	int capacity;
}sl;


void seqlistinit(sl* ps);

void seqlistdestory(sl* ps);

void seqlistpushback(sl* ps, sldatatype x);

void seqlistcheckcapacity(sl* ps);

void seqlistpopback(sl* ps);

void seqlistpushfront(sl* ps, sldatatype x);

void seqlistpopfront(sl* ps);

void seqlistprint(sl* ps);

int seqlistfind(sl* ps, sldatatype x);

void seqlistinsert(sl* ps, int pos, sldatatype x);

void seqlisterase(sl* ps, int pos);